<?php

define('ERR_001','Error: No file for the selected type exists');
define('ERR_002','Error: No object obtained on the return');
define('NTC_001','Notice: Invalid fields found.');

function launch_error($error_type, $error_num){
    if ( WP_DEBUG ){
        $error = new WP_Error();
        switch ($error_num){
            case 1:
                $error->
                break;
            default:

                break;
        }
        $error = new WP_Error( $error_type . '_' . $error_num, __( $error_num . $this->fields['name']) );
        echo $error->get_error_message();
    } else {
        if ($error_type == 'ERR') {
            echo 'Error found in the page. Please contact the support team.';
        }
    }
}

?>
